from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'sketchdoc.views.home', name='home'),
    # url(r'^sketchdoc/', include('sketchdoc.foo.urls')),


      (r'^$','home.views.index'),
      (r'test/$','home.views.test'),                 
      (r'posts/$','posts.views.post'),
 
      (r'yakitori/$','yakitorihome.views.index'),
      (r'yakitori/newsvine/$','yakitorihome.views.newsvine'),
    (r'^yakitori/add_article', 'add_article.views.index'),
       (r'add_article/publish','add_article.views.publish'),
   (r'^accounts/', include('registration.backends.default.urls')),
    (r'^accounts/profile', 'yakitorihome.views.index'),

#    (r'^accounts/profile', 'registration.views.register'),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += staticfiles_urlpatterns()
